#set($pageCtrl = 'storeLists')
#set($layout = "clientlayout.htm" )
#set($navbar = ['店铺首页','企业简介', '企业相册', '客户留言'])
#set($navNow = '店铺首页')
#set($photowheel = true)
#parse('/esvml/store/list/init.vml')
#set($href = ["/j/s/${clientid}.html","/j/s/cp/${clientid}.html","/j/s/tu/${clientid}.html", "/j/s/msg/${clientid}.html"])

<link rel="stylesheet" type="text/css" href="./css/goods-lists.css">
<div class="breadcrumb">
	<ul class="clearfix">
		<li>
			<a href="">所有分类</a>
		</li>
	</ul>
</div><!-- breadcrumb -->
<div class="classify" data="$!sm">
	<div class="row clearfix">
		<label for="">大类:</label>
		<div class="item" classify="bigCates" text="all">全部</div>
		#if($goodcat.getBigCateCount()>0)
			#set($bigcat=$goodcat.getEsBigCategoryCaches())
			#foreach($cat in $bigcat)
				<div class="item b-${cat.getID()}" classify="bigCates" text="$cat.getNAME()"><a href="">$cat.getNAME()</a></div>
			#end
		#end
	</div>
	<div class="row clearfix">
		<label for="">小类:</label>
		<div class="item" classify="smallCates" text="all">全部</div>
		#if($goodcat.getBigCateCount()>0)
			#set($bigcat=$goodcat.getEsBigCategoryCaches())
			#foreach($cat in $bigcat)
				#if($cat.getEsSmallCategoryCaches().size()>0)
					#foreach($smcat in $cat.getEsSmallCategoryCaches())
				<div class="item sm-${smcat.getID()}" classify="smallCates" text="$smcat.getNAME()"><a href="">$smcat.getNAME()</a></div>
					#end
				#end
			#end
		#end
	</div>
	<div class="row clearfix">
		<label for="">品牌:</label>
		<div class="item" classify="brands" text="all">
			<a href="">全部</a>
		</div>
		#set($count=$!pinlist.result.optInt('num',0))
		#set($o=$count - 1)
		#if($!count>0)
			#foreach($i in [0..$o])
			<div class="item" classify="brands" text="$pinlist.result.items[$i].optString("name")">
				<a href="">$pinlist.result.items[$i].optString("name")</a>
			</div>
			#end
		#end
	</div>
	<div class="row clearfix">
		<label for="">其他:</label>
		<div class="item" classify="other" text="all">
			<a href="">全部</a>
		</div>
		<div class="item" classify="other" text="is_new">
			<a href="">新品</a>
		</div>
		<div class="item" classify="other" text="is_recommend">
			<a href="">推荐</a>
		</div>
	</div>
</div><!-- classify -->
<div class="options clearfix">
	<ul class="clearfix">
		<li class="active" opt-btn item="all">
			综合排序
			<i class="icon"></i>
		</li>
		<li opt-btn item="qty">
			销量
			<i class="icon"></i>
		</li>
		<li opt-btn item="price">
			价格
			<i class="icon"></i>
		</li>
		<li opt-btn item="saletime">
			时间
			<i class="icon"></i>
		</li>
	</ul>
	<input type="text" class="search-name" placeholder="商品名称,属性" ng-keypress="$event.keyCode==13?setList(0):'';">
	<div class="option-price clearfix">
		<input type="tel" placeholder="最低价" ng-model="classify.p1" ng-keypress="$event.keyCode==13?setList(0):'';">
		<span>-</span>
		<input type="tel" placeholder="最高价" ng-model="classify.p2" ng-keypress="$event.keyCode==13?setList(0):'';">
		<button type="button" ng-click="setList(0)">搜索</button>
	</div><!-- option-price -->
</div><!-- options -->
<div class="show-area margin-top-50">
	<div class="blocks clearfix">
		<div class="no-goods ng-hide" ng-show="pageNum==0">
			没有数据!
		</div>
		<div class="one-block ng-hide" ng-repeat="pro in productList track by $index" ng-show="pro">
			<i class="get collect" collect="lgoods" pdtid="{{pro.id}}">收藏</i>
			<a ng-href="/j/s/pdt/{{pro.id}}.html" target="_blank">
				<img src="/img/loading.gif" class="goodsImg lazy" data-original="{{pro.thumb}}">
			</a>
			<ul class="small-img clearfix">
				<li class="ng-hide" ng-show="pro.thumb1">
					<img class="lazy" data-original="{{pro.thumb1}}" src="/img/loading.gif">
				</li>
				<li class="ng-hide" ng-show="pro.thumb2">
					<img class="lazy" data-original="{{pro.thumb2}}" src="/img/loading.gif">
				</li>
				<li class="ng-hide" ng-show="pro.thumb3">
					<img class="lazy" data-original="{{pro.thumb3}}" src="/img/loading.gif">
				</li>
				<li class="ng-hide" ng-show="pro.thumb4">
					<img class="lazy" data-original="{{pro.thumb4}}" src="/img/loading.gif">
				</li>
				<li class="ng-hide" ng-show="pro.thumb5">
					<img class="lazy" data-original="{{pro.thumb5}}" src="/img/loading.gif">
				</li>
			</ul>
			<a ng-href="/j/s/pdt/{{pro.id}}.html" target="_blank">
				<p class="title ellipsis" ng-bind-html="pro.name | tohtml"></p>
			</a>
			
			<p class="price clearfix">
				<span class="num" ng-bind="pro['shop_price'] | currency: '￥'"></span>
				<span class="data">成交 <i ng-bind="pro.saleqty"></i>笔</span>
			</p>
		</div>
	</div>
	<pagination total-items="pageNum" ng-model="currentPage" max-size="maxSize" boundary-links="true" rotate="false" num-pages="numPages" first-text="首页" last-text="末页" previous-text="上一页" next-text="下一页" ng-change="pageChanged()" ng-hide="pageNum==0"></pagination>
</div><!-- show-area -->
<script type="text/javascript">
	#set($jspath = [__uri('./js/responsive.js')])
</script>
